
class HeapOnly
{
public:
	static HeapOnly* CreateObject()
	{
		return new HeapOnly;
	}
	HeapOnly(const HeapOnly& ho) = delete;
private:
	HeapOnly()
		:_a(0)
	{}
private:
	int _a;
};

int main()
{
	//HeapOnly ho1;
	//HeapOnly* pho = new HeapOnly;

	HeapOnly* ptr = HeapOnly::CreateObject();
	//HeapOnly copy(*ptr);

	return 0;
}

